package com.jxt.app.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.jxt.app.dao.base.ApdialogDAO;
import com.jxt.app.entity.base.Apdialog;
import com.jxt.app.entity.base.ApdialogExample;
import com.jxt.app.service.ApDialogService;
import com.jxt.app.util.Page;

@Service
public class ApDialogServiceImpl implements ApDialogService {
	@Resource
	private  ApdialogDAO apdialogDAO;

	@Override
	public int deleteModel(ApdialogExample record) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public Page findListByExample(ApdialogExample inparam, int page, int num)
			throws Exception {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public Apdialog getModelById(long id) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public int insertModel(Apdialog record) {
		int ret=0;
		try{
			apdialogDAO.insert(record);
			ret=1;	
		}catch(Exception e){
		// TODO Auto-generated method stub
			ret=0;
		}
		return ret;
	}

	@Override
	public List<Apdialog> listModel(ApdialogExample example) {
		// TODO Auto-generated method stub
		return apdialogDAO.selectByExample(example);
	}

	@Override
	public int updateModel(ApdialogExample record) {
		// TODO Auto-generated method stub
		return 0;
	}

}
